package a.h;

import a.i.jb;

import javax.swing.*;
import javax.swing.event.CellEditorListener;
import javax.swing.event.ChangeEvent;
import javax.swing.event.ListSelectionEvent;
import javax.swing.event.ListSelectionListener;
import javax.swing.plaf.basic.BasicHTML;
import javax.swing.table.*;
import javax.swing.text.JTextComponent;
import javax.swing.text.StyleConstants;
import javax.swing.text.html.HTMLEditorKit;
import java.awt.*;
import java.util.*;
import java.util.List;

class db
  extends bb
{
  private static final Icon d = ;
  private static final Icon e = ad.b();
  private static final String f = ec.c;
  private static final String g = cd.c;
  private static final String h = cd.d;
  private static final String i = "<html>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br><br></html>";
  private JTable j;
  private JEditorPane k;
  private JComponent l;
  private dc m;
  private b_ n;
  private c_ o;
  private e_ p;
  private ce q;
  private final cd.u_ r = m();
  
  db(dc paramdc, cd paramcd)
  {
    this(paramdc, paramcd, null);
  }
  
  db(dc paramdc, cd paramcd, Map paramMap)
  {
    a(paramdc);
    a(paramdc, paramcd, paramMap);
    this.m = paramdc;
  }
  
  public Dimension g()
  {
    return this.l.getPreferredSize();
  }
  
  public void a(Dimension paramDimension)
  {
    this.l.setPreferredSize(paramDimension);
  }
  
  public JComponent f()
  {
    return this.l;
  }
  
  dc h()
  {
    return this.m;
  }
  
  Map i()
  {
    return this.p.f();
  }
  
  void a(dc paramdc, Map paramMap, cd paramcd)
  {
    l();
    a(paramdc);
    this.n.a(paramcd.a());
    this.p.a(paramMap);
    n();
    a(paramdc, paramcd);
    a(paramdc, paramMap);
    this.q.fireTableDataChanged();
    this.m = paramdc;
  }
  
  void j()
  {
    if ((ec.t != 0) || (this.j.isEditing())) {
      this.j.getCellEditor().cancelCellEditing();
    }
  }
  
  void a(boolean paramBoolean)
  {
    a(paramBoolean, this);
  }
  
  void b(boolean paramBoolean)
  {
    c(paramBoolean, this);
  }
  
  private cd.u_ m()
  {
    Color localColor1 = ad.a("Panel.background", Color.gray);
    Color localColor2 = ad.a("Table.background", Color.white);
    Color localColor3 = ad.a("Table.foreground", Color.black);
    Color localColor4 = new Color(204, 204, 255);
    Color localColor5 = ad.a("Table.selectionBackground", localColor4);
    Color localColor6 = ad.a("Table.selectionForeground", Color.black);
    cd.u_ localu_ = cd.f();
    localu_.g = ad.a("TableEditor.info.background", localColor2);
    localu_.h = ad.a("TableEditor.info.foreground", localColor3);
    localu_.i = ad.a("TableEditor.info.selectionBackground", localColor5);
    localu_.j = ad.a("TableEditor.info.selectionForeground", localColor6);
    localu_.c = ad.a("TableEditor.table.background", localColor2);
    localu_.d = ad.a("TableEditor.table.foreground", localColor3);
    localu_.e = ad.a("TableEditor.table.selectionBackground", localColor5);
    localu_.f = ad.a("TableEditor.table.selectionForeground", localColor6);
    localu_.a = ad.a("TableEditor.table.gridColor", localColor1);
    localu_.b = ad.a("TableEditor.table.viewportBackground", localColor1);
    return localu_;
  }
  
  private void a(dc paramdc)
  {
    int i6 = ec.t;
    boolean bool = ec.s;
    int i1 = paramdc.h();
    kd localkd;
    ec localec;
    Object localObject;
    if (i6 == 0) {
      if (i1 == 1)
      {
        if (i6 != 0) {
          break label104;
        }
        if (paramdc.b(0).a().length() == 0)
        {
          localkd = paramdc.b(0);
          int i2 = localkd.b();
          i3 = 0;
          do
          {
            if (i3 >= i2) {
              break;
            }
            localec = localkd.b(i3);
            localObject = f.a(localec);
            a((ib)localObject);
            localec.a((tb)localObject);
            i3++;
          } while (!bool);
        }
      }
    }
    label104:
    int i3 = 0;
    label207:
    label209:
    do
    {
      if (i3 >= i1) {
        break;
      }
      localkd = paramdc.b(i3);
      localObject = new eb(localkd);
      a((ib)localObject);
      int i4 = localkd.b();
      int i5 = 0;
      do
      {
        if (i5 >= i4) {
          break;
        }
        localec = localkd.b(i5);
        f localf = f.a(localec);
        ((eb)localObject).a(localf);
        localec.a(localf);
        i5++;
        if (i6 != 0) {
          break label209;
        }
        if (bool) {
          break label207;
        }
      } while (!bool);
      if (i6 == 0) {
        i3++;
      }
    } while (!bool);
  }
  
  private JComponent a(dc paramdc, cd paramcd, Map paramMap)
  {
    int i2 = ec.t;
    boolean bool = ec.s;
    this.j = b(paramdc, paramcd, paramMap);
    JScrollPane localJScrollPane = new JScrollPane(this.j);
    Object localObject = null;
    if ((i2 != 0) || (paramMap != null)) {
      localObject = paramMap.get(cd.a);
    }
    if (i2 == 0) {
      if (!(localObject instanceof cd.s_)) {
        localObject = paramdc.n(cd.a);
      }
    }
    if (!(localObject instanceof cd.s_)) {
      localObject = cd.s_.d;
    }
    this.l = new g_(new BorderLayout());
    if (i2 == 0)
    {
      if (cd.s_.a == localObject)
      {
        this.l.add(localJScrollPane, "Center");
        if (i2 != 0) {
          break label310;
        }
        if (!bool) {}
      }
      else
      {
        this.k = new JEditorPane("text/html", i);
        this.k.setEditable(false);
      }
    }
    else
    {
      int i1 = (i2 != 0) || ((cd.s_.c == localObject) || (cd.s_.e == localObject)) ? 1 : 0;
      JSplitPane localJSplitPane;
      if ((i2 != 0) || ((cd.s_.c == localObject) || (cd.s_.b == localObject)))
      {
        localJSplitPane = new JSplitPane(i1, new JScrollPane(this.k), localJScrollPane);
        localJSplitPane.setResizeWeight(0.0D);
        if (i2 != 0) {
          break label293;
        }
        if (!bool) {}
      }
      else
      {
        localJSplitPane = new JSplitPane(i1, localJScrollPane, new JScrollPane(this.k));
        localJSplitPane.setResizeWeight(1.0D);
      }
      localJSplitPane.setOneTouchExpandable(true);
      label293:
      this.l.add(localJSplitPane, "Center");
    }
    a(paramdc, paramMap);
    label310:
    return this.l;
  }
  
  private JTable b(dc paramdc, cd paramcd, Map paramMap)
  {
    int i2 = ec.t;
    Object localObject = null;
    if ((i2 != 0) || (paramMap != null)) {
      localObject = paramMap.get(cd.f);
    }
    if ((i2 != 0) || (!(localObject instanceof Boolean))) {
      localObject = paramdc.n(cd.f);
    }
    this.q = new ce(this);
    this.o = new c_(this.r.a);
    this.p = new e_(paramMap);
    this.n = new b_(paramcd.a(), Boolean.TRUE.equals(localObject));
    ae localae = new ae(this.q);
    localae.getSelectionModel().addListSelectionListener(new f_());
    a(paramdc, paramcd);
    int i1 = Math.max(d.getIconWidth() + 2, localae.getRowHeight());
    TableColumnModel localTableColumnModel = localae.getColumnModel();
    TableColumn localTableColumn = localTableColumnModel.getColumn(0);
    localTableColumn.setMinWidth(i1);
    localTableColumn.setPreferredWidth(i1);
    localTableColumn.setMaxWidth(i1);
    localTableColumn.setResizable(false);
    localTableColumn.setCellRenderer(new d_(this.r.a));
    localTableColumn = localTableColumnModel.getColumn(1);
    localTableColumn.setCellRenderer(this.n);
    localTableColumn = localTableColumnModel.getColumn(2);
    localTableColumn.setCellRenderer(this.o);
    localTableColumn.setCellEditor(this.p);
    return localae;
  }
  
  private void n()
  {
    this.o.a();
    this.p.a();
  }
  
  private void a(dc paramdc, cd paramcd)
  {
    int i5 = ec.t;
    boolean bool = ec.s;
    int i1 = paramdc.h();
    int i2 = 0;
    label114:
    label116:
    do
    {
      if (i2 >= i1) {
        break;
      }
      kd localkd = paramdc.b(i2);
      int i3 = localkd.b();
      int i4 = 0;
      do
      {
        if (i4 >= i3) {
          break;
        }
        ec localec = localkd.b(i4);
        this.o.a(localec, paramcd.b(localec));
        this.p.a(localec, paramcd.a(localec));
        i4++;
        if (i5 != 0) {
          break label116;
        }
        if (bool) {
          break label114;
        }
      } while (!bool);
      if (i5 == 0) {
        i2++;
      }
    } while (!bool);
  }
  
  private void a(String paramString)
  {
    int i1 = ec.t;
    boolean bool = ec.s;
    if (this.k != null)
    {
      if (((i1 != 0) || (paramString != null)) && ((i1 != 0) || (paramString.length() > 0)))
      {
        if (i1 == 0)
        {
          if (BasicHTML.isHTMLString(paramString))
          {
            if (i1 != 0) {
              break label114;
            }
            this.k.setText(paramString);
            if (!bool) {}
          }
          else
          {
            if (i1 != 0) {
              break label114;
            }
            this.k.setText("<html>" + paramString + "</html>");
          }
        }
        else if (!bool) {}
      }
      else {
        this.k.setText(i);
      }
      label114:
      this.k.setCaretPosition(0);
    }
  }
  
  private static String a(ec paramec)
  {
    int i1 = ec.t;
    String str = (String)paramec.c(f);
    if ((i1 != 0) || (str != null)) {
      if (i1 != 0) {}
    }
    return str.length() > 0 ? str + "." + paramec.d() : paramec.d();
  }
  
  private void a(dc paramdc, Map paramMap)
  {
    int i1 = ec.t;
    boolean bool = ec.s;
    String str = cd.b;
    Object localObject = null;
    if ((i1 != 0) || (paramMap != null)) {
      localObject = paramMap.get(str);
    }
    if (i1 == 0) {
      if (!(localObject instanceof cd.u_)) {
        localObject = paramdc.n(str);
      }
    }
    cd.u_ localu_ = (i1 != 0) || ((localObject instanceof cd.u_)) ? (cd.u_)localObject : this.r;
    if (i1 == 0) {}
    Color localColor = localu_.c != null ? localu_.c : this.r.c;
    this.j.setBackground(localColor);
    if (i1 == 0) {}
    localColor = localu_.d != null ? localu_.d : this.r.d;
    this.j.setForeground(localColor);
    if (i1 == 0) {}
    localColor = localu_.e != null ? localu_.e : this.r.e;
    this.j.setSelectionBackground(localColor);
    if (i1 == 0) {}
    localColor = localu_.f != null ? localu_.f : this.r.f;
    this.j.setSelectionForeground(localColor);
    if (i1 == 0) {}
    localColor = localu_.a != null ? localu_.a : this.r.a;
    this.j.setGridColor(localColor);
    if (i1 == 0) {}
    localColor = localu_.b != null ? localu_.b : this.r.b;
    Container localContainer;
    while ((localContainer = this.j.getParent()) != null)
    {
      if (i1 == 0) {
        if ((localContainer instanceof JViewport))
        {
          localContainer.setBackground(localColor);
          if ((i1 == 0) && (!bool)) {
            break;
          }
        }
      }
      if ((localContainer instanceof JScrollPane))
      {
        ((JScrollPane)localContainer).getViewport().setBackground(localColor);
        if ((i1 != 0) || (bool)) {
          return;
        }
      }
    }
    if (this.k != null)
    {
      if (i1 == 0) {}
      localColor = localu_.g != null ? localu_.g : this.r.g;
      this.k.setBackground(localColor);
      if (i1 == 0) {}
      localColor = localu_.h != null ? localu_.h : this.r.h;
      this.k.setForeground(localColor);
      StyleConstants.setForeground(((HTMLEditorKit)this.k.getEditorKit()).getStyleSheet().getStyle("body"), localColor);
      if (i1 == 0) {}
      localColor = localu_.i != null ? localu_.i : this.r.i;
      this.k.setSelectionColor(localColor);
      if (i1 == 0) {}
      localColor = localu_.j != null ? localu_.j : this.r.j;
      this.k.setSelectedTextColor(localColor);
    }
  }
  
  private static final class g_
    extends JPanel
  {
    private Dimension a;
    private Dimension c;
    
    public g_() {}
    
    public g_(boolean paramBoolean)
    {
      super();
    }
    
    public g_(LayoutManager paramLayoutManager)
    {
      super();
    }
    
    public g_(LayoutManager paramLayoutManager, boolean paramBoolean)
    {
      super(paramBoolean);
    }
    
    public boolean isValidateRoot()
    {
      return true;
    }
    
    public Dimension getMinimumSize()
    {
      if (ec.t == 0) {
        if (this.a == null) {
          this.a = super.getMinimumSize();
        }
      }
      return this.a;
    }
    
    public Dimension getMaximumSize()
    {
      return super.getMaximumSize();
    }
    
    public Dimension getPreferredSize()
    {
      if (ec.t == 0) {
        if (this.c == null) {
          this.c = super.getPreferredSize();
        }
      }
      return this.c;
    }
    
    public void setPreferredSize(Dimension paramDimension)
    {
      this.c = null;
      super.setPreferredSize(paramDimension);
    }
  }
  
  private static final class d_
    implements TableCellRenderer
  {
    final DefaultTableCellRenderer a = new DefaultTableCellRenderer();
    final DefaultTableCellRenderer c = new DefaultTableCellRenderer();
    
    public d_(Color paramColor)
    {
      this.c.setText("");
      this.c.setBackground(paramColor);
      this.c.setHorizontalAlignment(0);
    }
    
    public Component getTableCellRendererComponent(JTable paramJTable, Object paramObject, boolean paramBoolean1, boolean paramBoolean2, int paramInt1, int paramInt2)
    {
      if ((paramObject instanceof eb))
      {
        this.c.setIcon(((eb)paramObject).m() ? db.e : db.d);
        this.c.setBackground(paramJTable.getGridColor());
        return this.c;
      }
      this.a.getTableCellRendererComponent(paramJTable, null, false, false, paramInt1, paramInt2);
      this.a.setBackground(paramJTable.getGridColor());
      return this.a;
    }
  }
  
  private static final class b_
    implements TableCellRenderer
  {
    private ob a;
    private final boolean b;
    private final DefaultTableCellRenderer c;
    private final DefaultTableCellRenderer d;
    private final Map e;
    private Font f;
    
    public b_(ob paramob, boolean paramBoolean)
    {
      this.a = paramob;
      this.b = paramBoolean;
      this.c = new DefaultTableCellRenderer();
      this.d = new DefaultTableCellRenderer();
      this.e = new HashMap();
      Font localFont = this.c.getFont();
      this.f = new Font(localFont.getFontName(), 1, localFont.getSize());
    }
    
    public ob a()
    {
      return this.a;
    }
    
    public void a(ob paramob)
    {
      this.a = paramob;
      this.e.clear();
    }
    
    public Component getTableCellRendererComponent(JTable paramJTable, Object paramObject, boolean paramBoolean1, boolean paramBoolean2, int paramInt1, int paramInt2)
    {
      int i = ec.t;
      if (i == 0)
      {
        if (paramObject != null) {
          paramBoolean2 = false;
        }
      }
      else
      {
        pb localpb = (pb)paramObject;
        if (i == 0)
        {
          if (localpb.g())
          {
            this.c.getTableCellRendererComponent(paramJTable, a(localpb), paramBoolean1, paramBoolean2, paramInt1, paramInt2);
            if (i == 0)
            {
              if (!paramBoolean1) {
                this.c.setBackground(paramJTable.getGridColor());
              }
              this.c.setFont(this.f);
            }
            return this.c;
          }
          this.d.getTableCellRendererComponent(paramJTable, a(localpb), paramBoolean1, paramBoolean2, paramInt1, paramInt2);
          a((f)localpb);
        }
        return this.d;
      }
      this.d.getTableCellRendererComponent(paramJTable, paramObject, paramBoolean1, paramBoolean2, paramInt1, paramInt2);
      this.d.setToolTipText(null);
      return this.d;
    }
    
    private void a(f paramf)
    {
      int i = ec.t;
      ec localec = paramf.k();
      String str1 = nb.a(localec);
      String str2 = localec.e();
      if (i == 0) {
        if ((str2 == null) && ((i != 0) || (this.a != null)))
        {
          try
          {
            str2 = this.a.b(str1 + ".TOOLTIP");
          }
          catch (MissingResourceException localMissingResourceException1)
          {
            str2 = null;
          }
          if (i != 0) {
            break label124;
          }
          if (str2 != null)
          {
            if (i == 0)
            {
              if (str2.length() != 0) {
                if (i != 0) {
                  break label124;
                }
              }
            }
            else {
              if (!str2.endsWith("TOOLTIP")) {
                break label122;
              }
            }
            str2 = null;
          }
        }
      }
      label122:
      if (str2 == null)
      {
        label124:
        if (i != 0) {
          break label216;
        }
        if (a(localec))
        {
          if ((i != 0) || (this.a != null)) {
            try
            {
              str2 = this.a.b(str1);
            }
            catch (MissingResourceException localMissingResourceException2)
            {
              str2 = null;
            }
          }
          if ((i != 0) || ((str2 == null) || ((i != 0) || ((str2.length() == 0) || ((i != 0) || (str2.equals(str1))))))) {
            str2 = localec.d();
          }
        }
      }
      label216:
      this.d.setToolTipText(str2);
    }
    
    private boolean a(ec paramec)
    {
      int i = ec.t;
      String str = cd.f;
      if (i == 0) {
        if (!this.b) {
          if (i != 0) {
            break label38;
          }
        }
      }
      label38:
      return Boolean.TRUE.equals(paramec.c(str));
    }
    
    private String a(pb parampb)
    {
      int i = ec.t;
      String str = "";
      Object localObject = parampb.a(parampb.g() ? "OptionSection.context" : "OptionItem.context");
      if (i == 0)
      {
        if ((localObject instanceof String))
        {
          str = (String)localObject;
          if (i != 0) {
            break label91;
          }
        }
      }
      else if (str.length() > 0) {
        str = str + ".";
      }
      label91:
      return a(str, parampb.j());
    }
    
    private String a(String paramString1, String paramString2)
    {
      int i = ec.t;
      boolean bool = ec.s;
      String str1 = paramString1 + paramString2;
      String str2 = (String)this.e.get(str1);
      if (i == 0) {
        if (str2 == null) {
          if ((i != 0) || (this.a != null))
          {
            str2 = this.a.b(str1);
            if (i == 0) {
              if (str2 != null)
              {
                if (i == 0)
                {
                  if (str2.equals(str1)) {
                    str2 = paramString2;
                  }
                  this.e.put(str1, str2);
                }
                if (i != 0) {
                  break label142;
                }
                if (!bool) {
                  break label148;
                }
              }
            }
            this.e.put(str1, paramString2);
            label142:
            if (!bool) {}
          }
          else
          {
            str2 = paramString2;
          }
        }
      }
      label148:
      return str2;
    }
  }
  
  private static final class e_
    implements TableCellEditor
  {
    final Map a;
    Map b;
    final jb c;
    TableCellEditor d;
    private List e = new ArrayList();
    private CellEditorListener f;
    
    public e_(Map paramMap)
    {
      this.b = paramMap;
      this.a = new HashMap();
      this.c = a.i.ib.c();
      this.d = new nd();
      this.f = new db.0(this);
    }
    
    public void a(ec paramec, TableCellEditor paramTableCellEditor)
    {
      int i = ec.t;
      String str = db.a(paramec);
      Object localObject = paramec.c(db.g);
      TableCellEditor localTableCellEditor = null;
      if ((i != 0) || ((localObject instanceof TableCellEditor))) {
        localTableCellEditor = (TableCellEditor)localObject;
      } else if ((i != 0) || (paramTableCellEditor != null)) {
        localTableCellEditor = paramTableCellEditor;
      }
      if ((i != 0) || (localTableCellEditor != null)) {
        this.a.put(str, localTableCellEditor);
      }
    }
    
    public void a()
    {
      this.a.clear();
    }
    
    public Component getTableCellEditorComponent(JTable paramJTable, Object paramObject, boolean paramBoolean, int paramInt1, int paramInt2)
    {
      int i = ec.t;
      boolean bool2 = ec.s;
      if (i == 0) {
        if (this.d != null)
        {
          this.d.removeCellEditorListener(this.f);
          this.d = null;
        }
      }
      pb localpb = (pb)paramObject;
      if ((i != 0) || ((localpb.h()) && ((i != 0) || (localpb.i()))))
      {
        f localf = (f)localpb;
        String str = db.a(localf.k());
        if ((i != 0) || (str != null))
        {
          TableCellEditor localTableCellEditor = (TableCellEditor)this.a.get(str);
          if (i == 0)
          {
            if (localTableCellEditor != null)
            {
              this.d = localTableCellEditor;
              this.d.addCellEditorListener(this.f);
            }
          }
          else
          {
            if (i == 0)
            {
              if ((localTableCellEditor instanceof cd.t_)) {
                ((cd.t_)localTableCellEditor).a(localf);
              }
              paramObject = localf.n();
            }
            if ((i != 0) || ((localf.p()) && ((i != 0) || ((localf.k() instanceof u))))) {
              paramObject = ((u)localf.k()).a();
            }
            Component localComponent = localTableCellEditor.getTableCellEditorComponent(paramJTable, paramObject, paramBoolean, paramInt1, paramInt2);
            boolean bool1;
            if (this.b != null)
            {
              bool1 = Boolean.TRUE.equals(this.b.get("ItemEditor.selectTextOnFocusGained"));
              if (i != 0) {
                break label291;
              }
              if (!bool2) {}
            }
            else
            {
              bool1 = Boolean.TRUE.equals(localf.a("ItemEditor.selectTextOnFocusGained"));
            }
            label291:
            if ((i != 0) || (bool1))
            {
              Object localObject;
              if (i == 0)
              {
                if ((localComponent instanceof JTextComponent))
                {
                  localObject = (JTextComponent)localComponent;
                  if (i != 0) {
                    break label381;
                  }
                  if (((JTextComponent)localObject).isEditable())
                  {
                    ((JTextComponent)localObject).selectAll();
                    if (i != 0) {
                      break label379;
                    }
                    if (!bool2) {}
                  }
                }
                else
                {
                  if (i != 0) {
                    break label381;
                  }
                }
              }
              else if ((localComponent instanceof cd.m_))
              {
                localObject = (cd.m_)localComponent;
                ((cd.m_)localObject).a();
              }
            }
            localComponent.requestFocus();
            label379:
            label381:
            return localComponent;
          }
        }
      }
      return null;
    }
    
    private void c()
    {
      boolean bool = ec.s;
      if (!this.e.isEmpty())
      {
        ChangeEvent localChangeEvent = new ChangeEvent(this);
        CellEditorListener[] arrayOfCellEditorListener = new CellEditorListener[this.e.size()];
        this.e.toArray(arrayOfCellEditorListener);
        int i = 0;
        do
        {
          if (i >= arrayOfCellEditorListener.length) {
            break;
          }
          arrayOfCellEditorListener[i].editingCanceled(localChangeEvent);
          i++;
        } while (!bool);
      }
    }
    
    private void d()
    {
      boolean bool = ec.s;
      if (!this.e.isEmpty())
      {
        ChangeEvent localChangeEvent = new ChangeEvent(this);
        CellEditorListener[] arrayOfCellEditorListener = new CellEditorListener[this.e.size()];
        this.e.toArray(arrayOfCellEditorListener);
        int i = 0;
        do
        {
          if (i >= arrayOfCellEditorListener.length) {
            break;
          }
          arrayOfCellEditorListener[i].editingStopped(localChangeEvent);
          i++;
        } while (!bool);
      }
    }
    
    public void cancelCellEditing()
    {
      this.d.cancelCellEditing();
    }
    
    public boolean stopCellEditing()
    {
      return this.d.stopCellEditing();
    }
    
    public Object getCellEditorValue()
    {
      return this.d.getCellEditorValue();
    }
    
    public boolean isCellEditable(EventObject paramEventObject)
    {
      return true;
    }
    
    public boolean shouldSelectCell(EventObject paramEventObject)
    {
      return true;
    }
    
    public void addCellEditorListener(CellEditorListener paramCellEditorListener)
    {
      this.e.add(paramCellEditorListener);
    }
    
    public void removeCellEditorListener(CellEditorListener paramCellEditorListener)
    {
      this.e.remove(paramCellEditorListener);
    }
    
    Map f()
    {
      return this.b;
    }
    
    void a(Map paramMap)
    {
      this.b = paramMap;
    }
  }
  
  private static final class c_
    implements TableCellRenderer
  {
    private static final Color a = ;
    final DefaultTableCellRenderer b = new DefaultTableCellRenderer();
    final DefaultTableCellRenderer c = new DefaultTableCellRenderer();
    final DefaultTableCellRenderer d = new DefaultTableCellRenderer();
    final Map e;
    
    public c_(Color paramColor)
    {
      this.c.setText("");
      this.c.setIcon(null);
      this.c.setBackground(paramColor);
      this.d.setText("");
      this.d.setIcon(null);
      this.d.setBackground(a);
      this.e = new HashMap();
    }
    
    public void a(ec paramec, TableCellRenderer paramTableCellRenderer)
    {
      int i = ec.t;
      String str = db.a(paramec);
      Object localObject = paramec.c(db.h);
      if (i == 0)
      {
        if ((localObject instanceof TableCellRenderer))
        {
          if (i != 0) {
            break label57;
          }
          this.e.put(str, localObject);
        }
      }
      else if (!ec.s) {
        return;
      }
      label57:
      if ((i != 0) || (paramTableCellRenderer != null)) {
        this.e.put(str, paramTableCellRenderer);
      }
    }
    
    public void a()
    {
      this.e.clear();
    }
    
    public Component getTableCellRendererComponent(JTable paramJTable, Object paramObject, boolean paramBoolean1, boolean paramBoolean2, int paramInt1, int paramInt2)
    {
      int i = ec.t;
      if (i == 0)
      {
        if (paramObject != null) {
          paramBoolean2 = false;
        }
      }
      else
      {
        pb localpb = (pb)paramObject;
        if (i == 0) {
          if (localpb.g())
          {
            if (i == 0)
            {
              this.c.getTableCellRendererComponent(paramJTable, "", paramBoolean1, paramBoolean2, paramInt1, paramInt2);
              if (!paramBoolean1) {
                this.c.setBackground(paramJTable.getGridColor());
              }
            }
            return this.c;
          }
        }
        f localf = (f)localpb;
        String str = db.a(localf.k());
        if (i == 0)
        {
          if (str != null) {
            if (i != 0) {
              break label226;
            }
          }
        }
        else
        {
          TableCellRenderer localTableCellRenderer = (TableCellRenderer)this.e.get(str);
          if (localTableCellRenderer != null)
          {
            if (i == 0) {
              if ((localTableCellRenderer instanceof cd.t_))
              {
                if (i != 0) {
                  break label206;
                }
                ((cd.t_)localTableCellRenderer).a(localf);
              }
            }
            if ((ec.s) && (localf.p()))
            {
              this.d.setBackground(paramBoolean1 ? paramJTable.getSelectionBackground() : a);
              return this.d;
            }
            label206:
            return localTableCellRenderer.getTableCellRendererComponent(paramJTable, localf.n(), paramBoolean1, paramBoolean2, paramInt1, paramInt2);
          }
        }
      }
      label226:
      return this.b.getTableCellRendererComponent(paramJTable, paramObject, paramBoolean1, paramBoolean2, paramInt1, paramInt2);
    }
  }
  
  class f_
    implements ListSelectionListener
  {
    f_() {}
    
    public void valueChanged(ListSelectionEvent paramListSelectionEvent)
    {
      int j = ec.t;
      if ((j != 0) || (!paramListSelectionEvent.getValueIsAdjusting()))
      {
        int i = db.this.j.getSelectedRow();
        if (j == 0)
        {
          if (i < 0) {
            db.this.a(null);
          }
        }
        else {
          return;
        }
        pb localpb = (pb)db.this.q.getValueAt(i, 0);
        Object localObject = localpb.a(localpb.g() ? kd.b : ec.e);
        if (j == 0)
        {
          if ((localObject instanceof String))
          {
            if (j != 0) {
              break label128;
            }
            db.this.a((String)localObject);
          }
        }
        else if (!ec.s) {
          return;
        }
        label128:
        db.this.a(null);
      }
    }
  }
}



/* Location:           E:\idea\

 * Qualified Name:     a.h.db

 * JD-Core Version:    0.7.0.1

 */